//
//  BSLoginRegisterView.m
//  BaiSi
//
//  Created by Sycamore on 16/4/28.
//  Copyright © 2016年 Sycamore. All rights reserved.
//

#import "BSLoginRegisterView.h"
#import "BSLoginTextField.h"
@interface BSLoginRegisterView ()

@property (weak, nonatomic) IBOutlet UIButton *loginButton;

@property (weak, nonatomic) IBOutlet BSLoginTextField *textView;

@end

@implementation BSLoginRegisterView

+ (instancetype)loginView
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]firstObject];
}


+ (instancetype)registerView
{
    return [[[NSBundle mainBundle]loadNibNamed:NSStringFromClass(self) owner:nil options:nil]lastObject];
}

- (void)awakeFromNib
{
    UIImage *image = [UIImage imageNamed:@"loginBtnBg"];
    image =[image stretchableImageWithLeftCapWidth:image.size.width * 0.5 topCapHeight:image.size.height * 0.5];
    
    [_loginButton setBackgroundImage:image forState:UIControlStateNormal];
    
    }


@end
